package com.systemsetup.systemsetup.web.mapper;

import cn.hutool.json.JSONObject;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.systemsetup.systemsetup.model.Permissions;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface PermissionsMapper extends BaseMapper<Permissions> {

    /**
     * @Author YangYu
     * @Description 权限列表
     * @Date Created in 10:06 2022/5/6
     * @Param [type]
     */

    List<Permissions> getPermissionsList(JSONObject jsonParam);

    /**
     * @Author YangYu
     * @Description 首页权限
     * @Date Created in 15:22 2021/1/12
     * @Param [jsonParam]
     */

    List<String> navBarList(String roleId);

    /**
     * @Author YangYu
     * @Description 按钮权限列表
     * @Date Created in 16:35 2021/1/12
     * @Param [roleId]
     */

    List<String> buttonList(String roleId);

    /**
     * @Author YangYu
     * @Description 权限列表(用户)
     * @Date Created in 16:35 2021/1/12
     * @Param [roleId]
     */

    List<Permissions> getUserPermissionsList(String userId);
}
